@charset "utf-8";
/* CSS Document */
*{
    margin:0;
    padding:0;
}
body{
    font-family:"微软雅黑";
    background-color:#ddd;
}
.box{
    width:800px;
    height:600px;
    background:#fff;
    margin:30px auto;
    padding:20px;
}
.box .head span{
    font-size:18px;
    color:#333;
}
.box .head{
    margin-bottom:20px;
}
.box .head a{
    text-decoration:none;
    float:right;
    font-size:15px;
    color:#333; 
}
.box .head a:hover{
    color:#F00;
}
.box ul li{
    width:160px;
    height:240px;
    list-style:none;
    position:relative;
    float:left;
    margin-left:20px;
    margin-bottom:20px;
    overflow:hidden;
}
.box ul li .deatil{
    width:160px;
    height:240px;
    background:rgba(0,0,0,0.7);
    position:absolute;
    top:-240px;
    -webkit-transition:all 0.3s ease;
    -o-transition:all 0.3s ease;
    -moz-transition:all 0.3s ease;
    -ms-transition:all 0.3s ease;
}

.box ul li .deatil h2{
    font-size:18px;
    color:#fff;
    text-align:center;
    padding-top:30px;
    }
.box ul li .deatil p{
    font-size:16px;
    text-align:center;
    margin:30px;
    color:#fff;
}
.box ul li .deatil a{
    font-size:15px;
    display:block;
    color:#fff;
    background-color:#F00;
    text-decoration:none;
    width:100px;
    height:40px;
    text-align:center;
    line-height:40px;
    margin:0 auto;
}
.box ul li:hover .deatil{
    top:0;
}
img{
    width: 100%;
    height: 100%;
}

@media screen and (max-width:1200px) { 
    .box{
        width:800px;
        height:3800px;
        background:#fff;
        margin:30px auto;
        padding:20px;
    }
    
    .box ul li{
        width:360px;
        height:600px;
        list-style:none;
        position:relative;
        float:left;
        margin-left:20px;
        margin-bottom:20px;
        overflow:hidden;
    }
    .box ul li .deatil{
        width:360px;
        height:600px;
        background:rgba(0,0,0,0.7);
        position:absolute;
        top:-600px;
        -webkit-transition:all 0.3s ease;
        -o-transition:all 0.3s ease;
        -moz-transition:all 0.3s ease;
        -ms-transition:all 0.3s ease;
    }
    
    .box ul li .deatil h2{
        font-size:60px;
        color:#fff;
        text-align:center;
        padding-top:30px;
        }
    .box ul li .deatil p{
        font-size:60px;
        text-align:center;
        margin:30px;
        color:#fff;
    }
    .box ul li .deatil a{
        font-size:60px;
        display:block;
        color:#fff;
        background-color:#F00;
        text-decoration:none;
        width:100px;
        height:40px;
        text-align:center;
        line-height:40px;
        margin:0 auto;
    }
    .box ul li:hover .deatil{
        top:0;
    }
} 


